<input type="hidden" id="imageGroupId" name="_form[<?= $name ?>]" value="<?= $imageGroupId ?>" />
<input type="hidden" id="imageFolderName" value="<?= $folderName ?>" />
<div id="imageInputBody"></div>
<script>
	$(document).ready(function() {
		$('#imageInputBody').imageInput('<?= AHelper::jsonEncode($imagesArr) ?>');
	});
</script>